package controller;

import dao.GroupMessageDao;

public class GroupMessageController {

    private final GroupMessageDao groupMessageDao = new GroupMessageDao();

    public void addGroupMessage(String name, String context, String username) {
        groupMessageDao.insertGroupMessage(name, context, username);
    }

    public String[] getAllGroupMessages(String name) {
        return groupMessageDao.getGroupMessages(name);
    }
}